home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / utilities / text / entab10.lha / entab / README < prev    next >
Encoding:
Text File  |  1994-09-04  |  2.3 KB  |  61 lines

  1. Entab 1.0
  2. util/cli
  3. Short: entab - space/TAB conversion utility
  4. Author: ex-grahn@mdstud.chalmers.se (Jörgen Grahn)
  5. Uploader: ex-grahn@mdstud.chalmers.se
  6.  
  7. In February this year (1994), a person called Bruce Momjian posted some
  8. UNIX source code in a Usenet newsgroup (comp.sources or something).  I
  9. looked at it, found it useful and took it home.  I made it handle arguments
  10. in the standard Amiga way rather than the UNIX way.  I also couldn't resist
  11. cleaning up the code a bit, making it a bit more ANSI.  Then I forgot about
  12. it until now.  I would want a utility like this one, if I didn't already
  13. have it.
  14.  
  15. Entab is a shell command for manipulating text files.
  16.  
  17. In a text file, a TAB or a few spaces normally look the same.  The text
  18. doesn't look different if you add spaces or TABs at the end of a row
  19. either.  If the text is some kind of source code (C or LaTeX, for example)
  20. neither the text editor nor the compiler cares about white space.
  21.  
  22. However, people have different taste.  Some people like to format their
  23. texts and source code with 8-character TABs, some (like me) would rather
  24. use 4-character TABs, and others prefer plain spaces.
  25.  
  26. This is where Entab comes in.  Entab can convert spaces to TABs, or TABs to
  27. spaces.  It is smart about where it replaces spaces.  Additionally, it can
  28. strip trailing spaces at the end of rows for people like me who hate
  29. unnecessary spaces.
  30.  
  31. Template:
  32. NOTRAIL/S,DETAB/S,QUOTE/S,MINSPACE/N/K,TABSIZE/N/K,FILES/M
  33.  
  34. Entab reads one or more files and writes to standard output.  If no
  35. filename is given, entab reads standard input, so it should be possible to
  36. use with pipes.
  37.  
  38. For more details, refer to the original UNIX documentation, entab.doc in
  39. this distribution.
  40.  
  41. Some notes:
  42.  
  43. x  The original author didn't claim any copyright as far as I could see.
  44.    I don't either. You may spread this archive as you please, and also
  45.    make improvements and modifications.
  46.  
  47. x  This was a quick port. My version may have introduced tons of bugs.
  48.    Hope you have access to a compiler; then you can correct them.
  49.  
  50. x  Oh, yeah, this won't work with pre-2.0 releases of the OS.
  51.  
  52. x  The supplied Makefile won't work on an Amiga or with SAS/C I guess.
  53.    I forgot how I compiled it; must've done it manually. How barbaric...
  54.  
  55. 1994-09-03
  56.  
  57. Jörgen Grahn
  58. Wetterlinsg. 13e
  59. S-521 34 Falköping
  60. SWEDEN
  61.